import request from '@/router/axios';

//查询柱状和饼状图数据
export const getShapeData = (params) => {
  return request({
    url: '/api/mes-warehouse/stat-storage-age-material/chart',
    method: 'get',
    params
  });
};



// 分页查询
export const getTableList = (params) => {
  return request({
    url: '/api/mes-warehouse/stat-storage-age-material/page',
    method: 'get',
    params
  });
};

//查询详情
export const getDetailList = (params) => {
  return request({
    url: '/api/mes-warehouse/stat-storage-age-material/detail',
    method: 'get',
    params
  });
};

//查询趋势
export const getChartData = (params) => {
  return request({
    url: '/api/mes-warehouse/stat-storage-age-material/month-list',
    method: 'get',
    params
  });
};
